/**
 * 
 */
package design_pattern.visitor.pc;

/**
 * @author linzq
 * 
 */
public class IntegratedBoard extends Composite {

  public IntegratedBoard() {
    parts.add(new MainBoard());
    parts.add(new CPU());
  }

  @Override
  public void accept(Visitor v) {
    System.out.println("IntegratedBoard has been visited.");
    super.accept(v);
  }
}
